﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EnvRide.Core.ObjectModel;
using CodeMadeSimple.PropertiesManagement;

namespace EnvRide.Core.UnitTests
{
    public static class Helper
    {
        public const string PROP_NAME = "Prop";
        public const string PROP_VALUE = "ValueFromProperty";
        public const String rootAttWithPropName = "attWithPropertyValue";
        public const String rootAttWithPropMsg = "Should have transformed property references";

        public static EnvRide.Core.ObjectModel.Environment CreateDummyEnvironment()
        {
            EnvRideProject proj = new EnvRideProject();

            EnvRide.Core.ObjectModel.Environment env = new ObjectModel.Environment();

            env.Project = proj;

            return env;
        }

        public static void AddPropertyContext(EnvRideProcessArguments args)
        {
            PropertyContext propCtx = new PropertyContext();
            propCtx.Name = "DummyContext";
            propCtx.AddProperty(new Property { Name = PROP_NAME, Value = PROP_VALUE, Description = "A simple test value" });

            args.PropertyContainer = propCtx;
        }
    }
}
